package com.happy.cat.project.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.happy.cat.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * banner对象 cat_banner
 * 
 * @author verne
 * @date 2020-07-05
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("cat_banner")
@ApiModel(value="轮播图对象", description="轮播图对象数据")
public class CatBanner implements Serializable {

    private static final long serialVersionUID=1L;


    /** ID */
    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 图片 */
    @ApiModelProperty(value = "图片")
    @Excel(name = "图片")
    private String imageUrl;

    /** 位置 */
    @ApiModelProperty(value = "位置")
    @Excel(name = "位置")
    private String postion;

    /** 排序 */
    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    private Integer sort;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 创建用户 */
    @ApiModelProperty(value = "创建用户")
    @Excel(name = "创建用户")
    private String createBy;

    /** 状态 */
    @ApiModelProperty(value = "状态")
    @Excel(name = "状态")
    private Integer status;
}
